<?php

ini_set('display_errors', 1);

require_once(dirname(__FILE__).'/../../../lib/Garden/Controller.php');

$page = new Garden_Controller();

$page->validations = array(
    '_default' => array(
        'mode' => array('NOT_BLANK'),
    ),
    'main' => array(
        'id' => array('NOT_BLANK', 'UINT'),
    ),
);

$page->conditions = array(
    '_prepare' => function ($controller) {
    },
    'main' => function ($controller) {
    },
);

$page->templates = array(
    '_default' => 'main.tmpl',
    'main'     => 'main.tmpl',
);

$page->assign = array(
    '_default' => array(
        function ($controller) {
        },
        function ($controller) {
        },
    ),
    'main' => array(
        function ($controller) {
        },
        function ($controller) {
        }
    ),
);

$page->display();

print 1;
